<template>
    <div>
        this.$route.params.id传递的新闻ID是：{{this.$route.params.id}}
        this.$route.query.id传递的新闻ID是：{{this.$route.query.id}}
    </div>
</template>
<script>
export default {
    name: 'Detail'
}
</script>